#pragma once

#include "wxtl\fiber.h"

class BaseIocpInitiator;

class IocpFiber :
	public wxtl::Fiber
{
public:
	IocpFiber(void);
	~IocpFiber(void);

public:
	void SetCurrentInitiator(BaseIocpInitiator* io)
	{
		m_currentIo = io;
	}

	BaseIocpInitiator* GetCurrentInitiator()
	{
		return m_currentIo;
	}

	static IocpFiber& Current();

private:
	BaseIocpInitiator* m_currentIo;
};